//
// Created by Administrator on 2017/3/19 019.
//
#ifndef TQ_ED_H
#define TQ_ED_H

#include "ed_base.h"
#include "utils/transform.h"
#include "file/ed_fop.h"
#include <string.h>
#include <stdio.h>
#include "ed_signature.h"
#include "encrypt/md5/ed_md5.h"
#include "file/ed_fop.h"
#include "aes/base64.h"

#define CBC 1
#define ECB 1

jstring __raw_md5(JNIEnv *env,jobject clazz, jstring);

//jstring raw_sha1(JNIEnv *env,jobject clazz, jstring);

//jstring raw_aesEcbEncrypt(JNIEnv *env,jobject clazz,const uint8_t *key, jstring);
//jstring raw_aesEcbEncrypt2(JNIEnv *env,jobject clazz,jstring, jstring);
//jstring raw_aesEcbDecrypt(JNIEnv *env,jobject clazz,const uint8_t *key, jstring);
//jstring raw_aesEcbDecrypt2(JNIEnv *env,jobject clazz,jstring, jstring);

//jstring raw_aesCbcEncrypt(JNIEnv *env,jobject clazz,jstring iv, jstring key, jstring str_);
//jstring raw_aesCbcDecrypt(JNIEnv *env,jobject clazz,jstring iv, jstring key, jstring str_);


jint __write_str(JNIEnv *, jobject clazz, jstring, jstring);

jstring __read_str(JNIEnv *, jobject clazz, jstring);


/***
 * 获取app包名
 * @param env
 * @param thiz
 * @param context
 * @return
 */
jstring __get_pkg_name(JNIEnv *env, jobject thiz, jobject context);

/***
 * 获取纯粹的签名
 * @return
 */
jstring __get_app_sign(JNIEnv *,jobject, jobject);

/***
 * 获取app签名
 * @param env
 * @param thiz
 * @param context
 * @return
 */
jstring __get_custom_sign(JNIEnv *env, jobject thiz, jobject context);

jint __delete_dir(JNIEnv *env, jobject jclazz, jstring path);

jstring __encode_base64(JNIEnv *env, jobject jclazz, jstring path);

jstring __decode_base64(JNIEnv *env, jobject jclazz, jstring path);

#endif //TQ_ED_H